package com.yhthu.texthandler;

import com.yhthu.bean.Record;

import java.util.ArrayList;
import java.util.List;

public class QueryParamHandler extends BaseHandler<Record> {


    @Override
    public List<Record> getValidObjectFromTextContent(String content) {
        List<Record> recordList = new ArrayList<>();
        String[] lineRecords = super.executeLineSplitStrategy(content);
        RecordHandler recordSpliter = new RecordHandler();
        recordSpliter.setWordSplitStrategy(getWordSplitStrategy());
        recordSpliter.getValidObjectFromLineRcord(recordList, lineRecords);
        return recordList;
    }
}
